package com.finalproject.ui;
/**
 * VendingMachine Snack Item panel
 */
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.Dimension;
import java.awt.FlowLayout;

public class UiVBSnackItemPanel extends JPanel {
	
	
	
	/**
	 * Create the panel.
	 */
	public UiVBSnackItemPanel() {
		 	
       setLayout(new FlowLayout(FlowLayout.CENTER,20,20));
       setPreferredSize(new Dimension(100,200));
//       add(new UIVBSnackItem("LayCHipts",140,3.33));
//       add(new UIVBSnackItem("LayCHipts",120,3.33));
//       
//       add(new UIVBSnackItem("LayCHipts",120,3.33));
//       
//       add(new UIVBSnackItem("LayCHipts",120,3.33));
//       
//       add(new UIVBSnackItem("LayCHipts",120,3.33));
//       add(new UIVBSnackItem("LayCHipts",120,3.33));
//       add(new UIVBSnackItem("LayCHipts",120,3.33));
//       add(new UIVBSnackItem("LayCHipts",120,3.33));
//       add(new UIVBSnackItem("LayCHipts",120,3.33));
       setPreferredSize(new Dimension(300, 500));
       // setMaximumSize(new Dimension(400,400));
		 	
	}
	
	public void add(UIVBSnackItem uiSnackItem) {
		super.add(uiSnackItem);
	}
	
	
	
	
	public static void main(String[] args) {
		 JFrame f = new JFrame("FormLayout: Default Form Builder Example 1");
		
		 f.setDefaultCloseOperation(2);
	      f.getContentPane().add(new UiVBSnackItemPanel());
	      f.pack();
	      f.setSize(300,600);

	      f.setVisible(true);
	}
}
